Skip to main content
Feedback

Automatic Database Recovery

A Gateway has the ability to detect database corruption during the Gateway’s restart and to subsequently perform automatic database recovery.

This feature is enabled by default in the com.boomi.container.apigateway.enableDatabaseRecovery container property.

If database corruption is detected, the Gateway performs the following tasks:

  1. The old database file is renamed to gravitee.mv.db.YYYY-MM-DD.hh-mm-ss.backup.

  2. A new empty database is created with the name gravitee.mv.db.

  3. The new database is initialized and is configured to match the current schema configuration ( approximately 15-30 seconds).

  4. A DATABASE_RECOVERY message is sent to the Platform in 60 seconds to initiate a full database recovery for the Gateway and Developer Portal.

  5. The Platform starts sending messages in chunks to repopulate the data for the Gateway and Developer Portal database.

  6. After a few minutes, the Gateway is restored to full operational state.